package com.cqjtu.store.common;

import java.util.Arrays;
import java.util.List;

/**
 * @ProjectName: cqjtu-store
 * @Titile: Constants
 * @Author: Lucky
 * @Description: 常量量
 */
public class Constants {
    //未删除
    public static final int IS_NOT_DELETE = 0;
    //删除
    public static final int IS_DELETE = 1;
    /*hash次数*/
    public static final int HASH_TIME = 6;
    /*图像的类型*/
    public static final List<String> FILE_TYPE = Arrays.asList("png", "jpg");
    /*图像的大小*/
    public static final int FILE_MAX_SIZE = 2 * 1024 * 1024;
    /*默认地址*/
    public static final int DEFAULT_ADDRESS = 1;
    /*非默认地址*/
    public static final int NOT_DEFAULT_ADDRESS = 0;
    /*最多的地址条目数*/
    public static final int ADDRESS_MAX_ITEMS = 5;

    public static final String TOKEN_HEADER = "Authorization";

    //订单状态
    public static final Integer NOT_PAY = 0; //待付款

    public static final Integer ALREADY_PAY = 1;// 待收货


//    public static final Integer ALREADY_DELIVER = 2;

    public static final Integer ALREADY_RECEIVE = 2;//待评价

    public static final Integer ALREADY_CANCEL = 3; //退货退款

    public static final Integer ALREADY_OVER_TIME = 4;


    /*pv*/
    public static final String OPERATION_TYPE_PV = "pv";
    /*购物车*/
    public static final String OPERATION_TYPE_CART = "cart";
    /*购买*/
    public static final String OPERATION_TYPE_BUY = "buy";
    /*收藏*/
    public static final String OPERATION_TYPE_FAVORITE = "favorite";
    //新增用户默认密码
    public static final String DEFAULT_PASSWORD = "123456";
    /*启用账号*/
    public static final int DEFAULT_USER = 0;
    /*停用账号*/
    public static final int NOT_DEFAULT_USER = 1;
}
